package com.atguigu04.override.ex1;

public class ManKind {
    int sex;
    int salary;

    public void ManOrWoman(){
        if(this.sex==0){
            System.out.println("man");
        }else if (this.sex==1){
            System.out.println("woman");
        }
    }

    public void employed(){
        if(salary>0){
            System.out.println("job");
        }else{
            System.out.println("no job");
        }
    }
}
